﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="change_password.aspx.cs" Inherits="Web_Admin_Admin_change_password" %>

<%@ Register src="../ascx/navigation.ascx" tagname="navigation" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>修改密码</title>
    <link rel="stylesheet" type="text/css" href="../css/common.css" />
    <link rel="stylesheet" type="text/css" href="../css/default.css" />
    <script type="text/javascript" src="../js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="../js/jquery.validate.js"></script>
    <script type="text/javascript">
        //验证
        $().ready(function() {
            $("#form1").validate({
                rules: {
                    txt_Password: { required: true },
                    txt_ComPassword: { required: true,equalTo:"#txt_Password" }
                },
                messages: {
                    txt_Password: { required: "密码不能为空" },
                    txt_ComPassword: { required: "确认密码不能为空", equalTo: "密码与确认密码不一致" }
                },
                errorElement: "em",
                errorPlacement: function(error, element) {
                    error.appendTo(element.parent());
                }
            });
        });
    </script>
</head>
<body>
<form id="form1" runat="server">
<uc1:navigation ID="navigation1" Title="修改密码" runat="server" />
<div class="adRbox">
    <div class="arTabBox arFmtd">
    	<table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <th class="fmth">修改密码</th>
            <th>&nbsp;</th>
          </tr>
          <tr>
            <td class="addtd">用户名：</td>
            <td><asp:Literal ID="lit_UserName" runat="server"></asp:Literal></td>
          </tr>
          <tr>
            <td class="addtd">密码：</td>
            <td><asp:TextBox ID="txt_Password" TextMode="Password" CssClass="ipt1" runat="server"></asp:TextBox>&nbsp;<em>*</em>&nbsp;</td>
          </tr>
          <tr>
            <td class="addtd">确认密码 ：</td>
            <td><asp:TextBox ID="txt_ComPassword" TextMode="Password" CssClass="ipt1" runat="server"></asp:TextBox>&nbsp;<em>*</em>&nbsp;</td>
          </tr>
          <tr>
            <td class="addtd">&nbsp;</td>
            <td class="fmBtns"><label>
                <asp:Button ID="but_save" runat="server" Text="保存" onclick="but_save_Click" />
                <input type="button" name="button3" id="button3" value="返回" onclick="history.back();" />
            </label></td>
          </tr>
        </table>
    </div>
</div>
</form>
</body>
</html>

